<div class="max-height">
    <form class="searchbar">
        <div class="input-group form-inline">
            <div class="input-group">
                <input type="text" placeholder="请输入用户名" class="form-control" ng-model="name">
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default" ng-click="search(name)">
                        <span class="fa fa-search"></span>
                    </button>
                </span>
            </div>
        </div>
        <div class="input-group tool-bar">
            <button type="button" class="btn btn-default" ng-click="send()">
                <span class="fa fa-comments"></span> 发送消息
            </button>
            <button type="button" class="btn btn-default" ng-click="sync()"
                    ng-disabled="progress.active()" uib-tooltip="请勿经常同步" uib-tooltip-placement="bottom">
                <span class="fa fa-refresh" ng-class="{'fa-spin': progress.active()}"></span> 同步数据
            </button>
        </div>
    </form>
    <div style="height: 300px">
        <a-page-grid option="options" params="params" name="userTable"></a-page-grid>
    </div>
</div>
<script id="detailDialog" type="text/ng-template">
    <div class="row">
        <div class="col-md-4 form-photo">
            <div class="form-group">
                <img ng-src="{{ngDialogData.headImgUrl}}" alt="头像">
            </div>
        </div>
        <div class="col-md-8">
            <div class="form-horizontal">
                <div class="form-group m0">
                    <label class="col-sm-5">昵　　称:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.nickname"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">性　　别:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.sex"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">国　　家:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.country"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">省　　份:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.province"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">城　　市:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.city"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">备　　注:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.remark"></span>
                    </div>
                </div>
                <div class="form-group m0">
                    <label class="col-sm-5">关注时间:</label>
                    <div class="col-sm-7">
                        <span ng-bind="ngDialogData.subscribeTime*1000|date"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>
<script id="sendMsgDialog" type="text/ng-template">
    <div class="row">
        <div class="form-horizontal">
            <div class="form-group">
                <label class="col-lg-3 control-label">发送内容:</label>
                <div class="col-lg-8">
                    <textarea rows="6" class="form-control note-editor" ng-model="sendCtrl.content"></textarea>
                </div>
            </div>
            <div class="form-group m0">
                <div class="col-lg-offset-9 col-lg-3">
                    <button type="submit" class="btn btn-lg btn-primary" ng-click="sendCtrl.send();">确认</button>
                </div>
            </div>
        </div>
    </div>
</script>